import java.io.*;
import java.util.*;
public class Main{
    static int []ans = new int[1010];

    static int dfs(int n){
        if(ans[n]!=0) return ans[n];
        ans[n] = 1;
        for(int i=1;i*2<=n;i++) ans[n] += dfs(i);
        return ans[n];
    }
    public static void main(String[]args){
        Scanner cin = new Scanner(System.in);
        int n = cin.nextInt();
        cin.close();
        System.out.println(dfs(n));
    }
}